home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks96
/
AhhhhhhHack.sit
/
Ahhhhhh Hack
/
Ahhhhhh.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-22
|
646b
|
30 lines
#include <A4Stuff.h>
#include <SetupA4.h>
#include <Sound.h>
#include "Ahhhhhh.h"
#include "AhhGlobals.h"
SndListHndl mySoundH = nil;
//#define USE_DEBUGGER_CALLS
void SetMeUp (void)
{
OSErr myErr = 0;
/* initialize the globals in _this file_ */
mySoundH = (SndListHndl)GetResource(kSoundType,kLoadSoundID);
myErr = SndPlay(nil, mySoundH, false);
ReleaseResource((Handle)mySoundH);
mySoundH = (SndListHndl)GetResource(kSoundType,kSoundID);
DetachResource((Handle)mySoundH);
myErr = SndPlay(nil, mySoundH, false);
}
void PlayMySound( void )
{
OSErr myErr = 0;
if (mySoundH==nil) return;
myErr = SndPlay(nil, mySoundH, false);
}